#include"extend.hpp"

int main(){

// 5s为总时长进行自定义滚动模块日志输出测试
   Loggerbuilder::ptr gptr = std::make_shared<Globalloggerbuilder>();
  gptr->Buildloggername("test");
  gptr->Buildloggertype(Loggertype::LOGGER_ASYNC);
  gptr->Buildloopertype(AsyncIsSafe::ASYNC_UNSAFE);
  gptr->Buildlogsinks<Rollbytimesink>("./log/rool-",Timegap::GAP_SECOND);
  gptr->Build(); // 添加进loggermanager里
    time_t old=Date::Now();

     while(Date::Now()<old+5){
       GetLogger("test")->Info("测试拓展模块%s","---ing");
     }
 
     

}